You are here: Building the Model: General Elements > Pre-defined Tank Subroutines > Examples of Tank Control Logic > Special Notes
• Since tank models do not stop automatically when there are no more entities or scheduled arrivals, remember to define a run length or a STOP statement.
• When you activate a subroutine, it doesn't process until the current logic (the one activating the subroutine) finishes or becomes blocked. It you want the activated subroutine to process first, enter "WAIT 0" after the ACTIVATE statement.
• Do not define a local variable inside of a Tank_Loop since the loop will create the variable multiple times.
• Make sure all IF...THEN logic and WAIT UNTIL statements based on the Tank_Level array use the ">=" or "<=" operator and not just an "=" operator. (This is because flow occurs in increments and you can’t check for an exact value.)
• Tanks are not legal in multi-unit locations or in locations containing a conveyor or queue.